package com.cabal.job;

import com.cabal.war.service.WarService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class WarSendRewardJob {

	@Resource
	private WarService warService;


	@Scheduled(cron="${cabal-war-send-reward-cron:0 0/10 * * * ?}")
	public void warSendReward() {
		log.info("国战奖励物品发送定时任务开始......");
		warService.warSendReward();
		log.info("国战奖励物品发送定时任务结束......");
	}
}